package net.realsee.service.wcs.warehouse;

import com.baomidou.mybatisplus.extension.service.IService;
import net.realsee.domain.wcs.warehouse.WcsWarehouse;
import net.realsee.domain.wcs.warehouse.bo.WcsWarehouseBo;
import net.realsee.domain.wcs.warehouse.vo.WcsWarehouseVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 仓库Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsWarehouseService extends IService<WcsWarehouse> {

    /**
     * 查询仓库
     */
    WcsWarehouseVo selectVoById(Long id);

    /**
     * 查询仓库列表
     */
    TableDataInfo<WcsWarehouseVo> selectVoPage(WcsWarehouseBo bo, PageQuery pageQuery);

    /**
     * 查询仓库列表
     */
    List<WcsWarehouseVo> selectVoList(WcsWarehouseBo bo);

    /**
     * 新增仓库
     */
    Boolean insertByBo(WcsWarehouseBo bo);

    /**
     * 修改仓库
     */
    Boolean updateByBo(WcsWarehouseBo bo);

    /**
     * 校验并批量删除仓库信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);
}
